package com.wxx.bean;

import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;
import java.math.RoundingMode;

/**
 * @author: wxx
 * @date: 2024-08-16 15:17
 * @description todo 描述信息
 */
@Data
@Builder
public class DiskInfoBean {

    private String diskName;

    private Double totalSpace;

    private Double usableSpace;

    private Double freeSpace;

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        if (diskName != null) {
            builder.append("diskName='" + diskName + "'");
        }
        if (totalSpace != null) {
            builder.append(", totalSpace=" + totalSpace);
        }
        if (usableSpace != null) {
            builder.append(", usableSpace=" + usableSpace);
        }
        if (freeSpace != null) {
            builder.append(", freeSpace=" + freeSpace + "\n");
        }
        return builder.toString();
    }
}
